package com.pond.pond.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pond.pond.mapper.FacilityTypeMapper;
import com.pond.pond.domain.FacilityType;
import com.pond.pond.service.IFacilityTypeService;

/**
 * 设施字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-15
 */
@Service
public class FacilityTypeServiceImpl implements IFacilityTypeService 
{
    @Autowired
    private FacilityTypeMapper facilityTypeMapper;

    /**
     * 查询设施字典
     * 
     * @param id 设施字典主键
     * @return 设施字典
     */
    @Override
    public FacilityType selectFacilityTypeById(Long id)
    {
        return facilityTypeMapper.selectFacilityTypeById(id);
    }

    /**
     * 查询设施字典列表
     * 
     * @param facilityType 设施字典
     * @return 设施字典
     */
    @Override
    public List<FacilityType> selectFacilityTypeList(FacilityType facilityType)
    {
        return facilityTypeMapper.selectFacilityTypeList(facilityType);
    }

    /**
     * 新增设施字典
     * 
     * @param facilityType 设施字典
     * @return 结果
     */
    @Override
    public int insertFacilityType(FacilityType facilityType)
    {
        return facilityTypeMapper.insertFacilityType(facilityType);
    }

    /**
     * 修改设施字典
     * 
     * @param facilityType 设施字典
     * @return 结果
     */
    @Override
    public int updateFacilityType(FacilityType facilityType)
    {
        return facilityTypeMapper.updateFacilityType(facilityType);
    }

    /**
     * 批量删除设施字典
     * 
     * @param ids 需要删除的设施字典主键
     * @return 结果
     */
    @Override
    public int deleteFacilityTypeByIds(Long[] ids)
    {
        return facilityTypeMapper.deleteFacilityTypeByIds(ids);
    }

    /**
     * 删除设施字典信息
     * 
     * @param id 设施字典主键
     * @return 结果
     */
    @Override
    public int deleteFacilityTypeById(Long id)
    {
        return facilityTypeMapper.deleteFacilityTypeById(id);
    }
}
